//
//  MahjongControlView.h
//  Mahjong
//
//  Created by 饶首建 on 17/6/30.
//  Copyright © 2017年 com.ikamobile.com. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "GameModel.h"

#import "PlayerModel.h"
#import "ActionModel.h"
#import "MatchModel.h"

@interface MahjongControlView : UIView
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UICollectionView *collectionView;
@property (weak, nonatomic) IBOutlet UIView *playerContainer;
@property (weak, nonatomic) IBOutlet UIButton *sureBtn;
@property (weak, nonatomic) IBOutlet UIButton *closeBtn;
@property (weak, nonatomic) IBOutlet UIButton *closeIconBtn;

@property (nonatomic,strong) NSArray *dataArr;
@property (nonatomic,strong) NSArray *playersArr;
@property (nonatomic,strong) NSMutableArray *selectedAttributeArr;
@property (nonatomic,strong) NSMutableArray *selectedPlayerArr;

+(instancetype)mahjongControlView;

@property (nonatomic,strong) GameModel *gameModel;
@property (nonatomic,assign) ControlType controlType;
@property (nonatomic,strong) PlayerModel *owner;
@property (nonatomic,strong) ActionModel *actionModel;
@property (nonatomic,strong) MatchModel *matchModel;

@property (nonatomic,assign) BOOL isEditAction;

@end
